package com.zzq.service.impl;

import com.zzq.domain.dto.SmilePointRecordDTO;
import com.zzq.domain.search.PointRecordSearchParamet;
import com.zzq.domain.search.PointRuleSearchParamet;
import com.zzq.result.SmileResult;
import com.zzq.service.ClientPointService;
import com.zzq.service.SmilePointRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Service
public class ClientPointServiceImpl implements ClientPointService {

    @Autowired
    SmilePointRecordService pointRecordService;
    @Override
    @Transactional
    public SmileResult getPointRecordDTOList(PointRecordSearchParamet searchParamet) {
        List<SmilePointRecordDTO> pointRuleList = pointRecordService.getPointRecordDTOList(searchParamet);
        return SmileResult.sucess("成功",pointRuleList);
    }
}
